<template>
	<view>
		<view class="m-2 pl-3 bg-white rounded-20">
			<u-radio-group @change="changss" v-model="title">
				<view class="d-flex flex-column">
					<u-radio v-for="(item,index) in closeList" :name="item.title" :key="index" :disabled="item.checked"  active-color="#F24F4A" shape="circle">
						<view class="py-3 border-bottom w-100 flex-1" >
							<view>{{item.title}}</view>
						</view>
					</u-radio>	
				</view>
			</u-radio-group>
		</view>
	</view>
</template>

<script>
	import $vm from "vue";
	export default {
		data() {
			return {
				closeList:[
					{id:1,title:"无法联系上卖家",checked:false},
					{id:2,title:"买家误拍或重拍了",checked:false},
					{id:3,title:"买家无诚意完成交易",checked:false},
					{id:4,title:"已通过银行线下汇款",checked:false},
					{id:5,title:"已通过同城见面交易",checked:false},
					{id:6,title:"已通过货到付款交易",checked:false},
					{id:7,title:"已通过网上银行直接汇款",checked:false},
					{id:8,title:"已经缺货无法交易",checked:false},
					{id:9,title:"其他原因",checked:false}
				],
				title:"",
			}
		},
		methods: {
			changss(e){
				console.log(e)
				var globalData = getApp().globalData.closeLists; //获取全局变量
				getApp().globalData.closeLists= e; //修改全局变量
				uni.navigateBack({
					delta:1
				})
			},
		},
		onLoad(e) {
			if(e){
				this.title=e.title
				console.log(this.title)
			}
		}
	}
</script>

<style>
	u-radio{
		width: 100%!important;
	}
	.u-radio{
		width: 100%!important;
	}
	.u-radio__label{
		width: 100%;
		margin-right: 0rpx!important;
	}
</style>
